import Vue from 'vue'
import VueRouter from 'vue-router'
import workbench from '../components/workbench/work.vue'
import productA from './productA'
import productB from './productB'
import productC from './productC'
import login from './login'
import operatorA from './operatorA'
import operatorB from './operatorB'
import orderForm from './orderForm'
import setA from './setA'
import setB from './setB'
import setC from './setC'
import user from './user'
Vue.use(VueRouter)

const baseRooutes = [
  {
    path: '/',
    component: workbench
  }
]

const routes = baseRooutes.concat(productA,productB,productC,orderForm,operatorA,operatorB,user,setA,setB,setC,login)
window.routes = routes
const router = new VueRouter({
  routes
})

export default router
